<?php 

class Model_indexBanner extends Model{

	function __construct(){

	}

	function getindexBanner(){
		$where="starttime <= now() and endtime >= now() and status=1";
		$param = array();
		$param['field'] = "title as alt,photo_image1,photo_image2,url";
		$param['where'] = $where;
		$param['order'] = " priority desc, starttime desc"; //"id asc"
		$param['group'] = "";
		$param['limit'] = 3;
		$param['pagesize'] = 3 ;
		$param['page'] = 1;
		$param['join'] = "";
		$param['on'] = "";
		$data = db_query_hash('hilite_index_carousel',$param);
		$dataRes = array();
		if($data['result']) $dataRes = $data['result'];
		return $dataRes;
	}
}
	
?>